$OpenBSD: patch-simgear_misc_strutils_cxx,v 1.2 2016/09/19 22:38:50 pascal Exp $
--- simgear/misc/strutils.cxx.orig	Thu Sep  8 08:52:42 2016
+++ simgear/misc/strutils.cxx	Mon Sep 19 16:15:00 2016
@@ -639,7 +639,8 @@ std::string error_string(int errnum)
   retcode = strerror_s(buf, sizeof(buf), errnum);
 #elif defined(_GNU_SOURCE)
   return std::string(strerror_r(errnum, buf, sizeof(buf)));
-#elif (_POSIX_C_SOURCE >= 200112L) || defined(SG_MAC) || defined(__FreeBSD__)
+#elif (_POSIX_C_SOURCE >= 200112L) || defined(SG_MAC) || defined(__FreeBSD__) \
+	|| defined(__OpenBSD__)
   int retcode;
   // POSIX.1-2001 and POSIX.1-2008
   retcode = strerror_r(errnum, buf, sizeof(buf));
